Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-checkout: make barcode always uppercase #646

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

ntarocco
Copy link
Contributor

No description provided.

@ntarocco ntarocco changed the title ci: upgrade self-checkout: make barcode always uppercase Oct 16, 2024
onChange={(e) => this.setState({ manualBarcode: e.target.value })}
value={manualBarcode}
onChange={(e) =>
this.setState({ manualBarcode: e.target.value?.toUpperCase() })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatic uppercase on typing

/>
<Button
onClick={() => onChange(manualBarcode)}
onClick={() => manualBarcode && onBarcodeInput(manualBarcode)}
disabled={!manualBarcode}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disable the btn if no barcode inserted

const response = await itemApi.list(itemApi.query().withBarcode(term).qs());
const upperCasedTerm = term.toUpperCase();
const response = await itemApi.list(
itemApi.query().withBarcode(upperCasedTerm).qs()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be needed, but just in case....

@ntarocco ntarocco merged commit b9ae86b into inveniosoftware:master Oct 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants